<style scoped lang="scss" type="text/scss">
  @import '~variables';
</style>

<template>
  <div>
    <v-header></v-header>
    <v-footer></v-footer>
  </div>
</template>

<script>
  export default {
    name: '',
    data () {
      return {
        isLogin: true,
        username: '',
        search: '',
        tabVal: 'index'
      }
    },
    mounted () {
      console.log(this.tabList)
    },
    methods: {
      changeTabs (val) {
        console.log(val)
//        if (val === '') {
//          this.$routr
//        }
//        this.$router.push(`/${val}`)
//        this.$router.push({
//          path: `/${val}/list`,
//          query: {
//            boxName: val
//          }
//        })
      },
      // 刷新本页面
      reload () {
        this.$router.go(0)
      },
      // 登出
      logout () {
        this.$http.get('/api/auth/logout')
          .then((res) => {
            if (res.status){
              sessionStorage.setItem('userName','')
              this.username = ''
              this.$Message.success('登出成功')
              setTimeout(() => {
                this.$router.go(0)
              },1500)
            }
          })
      }
    }
  }
</script>
